﻿#ifndef _H_STEEL_SCRIPTMANGER
#define _H_STEEL_SCRIPTMANGER

#include <string>
#include <map>
#include "common.h"
#include "basic_class.h"
#include "scripts/script.h"

using namespace std;

namespace _STEEL_NAMESPACE {

class ScriptManager :	public BasicClass	{
 public:
	static ScriptManager * GetInstance();

  Script * LoadScript(const char * filename);

  ~ScriptManager();
 private:
	ScriptManager();

	static ScriptManager * _instance; ///< singletone class instance
	map<string, Script> _scripts; ///< loaded scripts
};

}

#endif //_H_SCRIPTMANGER
